import Layout from '@/module-dashboard/pages/layout'
const _import = require('@/router/import_' + process.env.NODE_ENV)
/**
 *
 * 路由有部分地方，需要自己补全的喔~ O(∩_∩)O哈哈~
 */

export default [
  {
    path: '/companyszs',
    component: Layout,
    redirect: 'noredirect',
    name: 'companyszs',
    meta: {
      title: '企业管理',
      icon: 'component'
    },
    children: [
      {
        path: 'listz',
        component: _import('hmmm/pages/companyszs'),
        name: 'companys-listz',
        meta: { title: '企业管理z', noCache: true, icon: 'peoples' }
      },
      {
        path: 'listw',
        component: _import('hmmm/pages/companys'),
        name: 'companys-listw',
        meta: { title: '企业管理w', noCache: true, icon: 'peoples' }
      }
    ]
  },
  {
    path: '/questions',
    component: Layout,
    redirect: 'noredirect',
    name: 'questions',
    meta: {
      title: '题库管理',
      icon: 'documentation'
    },
    children: [
      {
        path: 'list',
        component: _import('hmmm/pages/questions'),
        name: 'questions-list',
        meta: { title: '基础题库', noCache: true, icon: 'component' }
      },
      {
        path: 'choice',
        component: _import('hmmm/pages/questions-choice'),
        name: 'questions-choice',
        meta: { title: '精选题库', noCache: true, icon: 'component' }
      },
      {
        path: 'choice2',
        component: _import('hmmm/pages/questions-choice-2'),
        name: 'questions-choice-xm',
        meta: { title: '精选题库-xm', noCache: true, icon: 'component' }
      },
      {
        path: 'new-l',
        component: _import('hmmm/pages/questions-newb'),
        name: 'questions-new',
        meta: { title: '试题录入-ly', noCache: true, icon: 'component' }
      },
      {
        path: 'new-Z',
        component: _import('hmmm/pages/questions-new'),
        name: 'questions-new-Z',
        meta: { title: '试题录入-zsj', noCache: true, icon: 'component' }

      },
      {
        path: 'randoms',
        component: _import('hmmm/pages/questions-randoms'),
        name: 'questions-randoms',
        meta: { title: 'JFC-组题列表', noCache: true, icon: 'component' }
      }
    ]
  },
  {
    path: '/subjects',
    component: Layout,
    redirect: 'noredirect',
    name: 'subjects',
    meta: {
      title: '学科管理',
      icon: 'table'
    },
    children: [
      {
        path: 'jfc',
        component: _import('hmmm/pages/jfc-subjects'),
        name: 'jfc-subjects-list',
        meta: { title: 'JFC-学科', noCache: true, icon: 'component' }
      },
      {
        path: 'jjqpath',
        component: () => import('@/module-hmmm/pages/jjqsubjects.vue'),
        name: 'jjqpath',
        meta: { title: '江佳琪', noCache: true, icon: 'component' }
      },
      {
        path: 'directorys',
        component: () => import('@/module-hmmm/pages/directorys.vue'),
        name: 'subjects-directorys',
        meta: { title: '目录', noCache: true, icon: 'component' }
      },
      {
        path: 'tags',
        component: _import('hmmm/pages/tags'),
        name: 'subjects-tags',
        meta: { title: '标签', noCache: true, icon: 'component' }
      }
    ]
  }
  // {
  //   path: '/subjects',
  //   component: Layout,
  //   redirect: 'noredirect',
  //   name: 'subjects',
  //   meta: {
  //     title: '学科管理',
  //     icon: 'table'
  //   },
  //   children: [
  //     {
  //       path: 'list',
  //       component: _import('hmmm/pages/companys'),
  //       name: 'subjects-list',
  //       meta: { title: '学科', noCache: true, icon: 'component' }
  //     },
  //     {
  //       path: 'directorys',
  //       component: _import('hmmm/pages/companys'),
  //       name: 'subjects-directorys',
  //       meta: { title: '目录', noCache: true, icon: 'component' }
  //     },
  //     {
  //       path: 'tags',
  //       component: _import('hmmm/pages/companys'),
  //       name: 'subjects-tags',
  //       meta: { title: '标签', noCache: true, icon: 'component' }
  //     }
  //   ]
  // }
]
